class Test {
  static String handleFeature(List<double> list) {
    return list
        .toString()
        .replaceAll('[', '')
        .replaceAll(']', '')
        .replaceAll(',', '');
  }

  static List<double> recoveryFeature(String feature) {
    return feature
        .split(' ')
        .map((e) => double.parse(e))
        .toList()
        .cast<double>();
  }
}

void main(List<String> args) {
  final list = [-9.3423, 2.3423, 3.3423, 4.3423, 5.3423];
  final str = Test.handleFeature(list);
  final list2 = Test.recoveryFeature(str);
  print(str);
  print(list2);
}
